//
//  MainSelectTypeViewController.h
//  Application
//
//  Created by 薛小刚 on 2017/11/30.
//  Copyright © 2017年 薛小刚. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "B_Enum.h"



typedef void(^selectIndex)(NSInteger index);

@interface MainSelectTypeViewController : UIViewController

- (instancetype) initWithFrame:(CGRect) frame titleArray:(NSArray *) array;
/// 标题的数组
@property (nonatomic, strong) NSArray * titleArray;
/// viewControllers
@property (nonatomic, strong) NSArray * viewControllers;

@property (nonatomic, assign) B_SelectType type;

@property (nonatomic, copy) selectIndex block;
/// 当前选择的下标默认0
@property (nonatomic, assign) int selectIndex;

@end
